package com.shaowc.gs.spring.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * created by shaowenchao
 */
public class MyEventListener implements ApplicationListener<ApplicationEvent> {

    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println(" event " + event.getClass().getName());
        System.out.println(" event source: " + event.getSource());
    }
}
